package com.yutianran.mark.base;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.yutianran.ezutil.LogUtil;

import kale.ui.shatter.Shatter;

/**
 * Author：Yutianran on 2018/10/1 上午8:37
 */
public abstract class BaseShatter extends Shatter {

    @Override
    protected void onAttach(Activity activity) {
        LogUtil.printLife(getTag());
        super.onAttach(activity);
    }

    @Override
    protected void onCreate() {
        LogUtil.printLife(getTag());
        super.onCreate();
    }

    @Override
    public void onActSaveInstanceState(Bundle outState) {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActRestoreInstanceState(Bundle savedInstanceState) {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActStart() {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActResume() {
    }

    @Override
    public void onActPause() {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActStop() {
        LogUtil.printLife(getTag());
    }

    @Override
    protected void onSelfDestroy() {
        LogUtil.printLife(getTag());
        super.onSelfDestroy();
    }

    @Override
    public void onActDestroy() {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActRestart() {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActBackPressed() {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActNewIntent(Intent intent) {
        LogUtil.printLife(getTag());
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        LogUtil.printLife(getTag());
    }

}
